package com.ys.service;

import com.baomidou.mybatisplus.service.IService;
import com.ys.entity.WalletDeposit;
import com.ys.mapper.WalletDepositDao;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 冲币表 服务实现类
 * </p>
 *
 * @author zpf
 * @since 2018-03-26
 */
@Repository
public class WalletDepositServiceImap extends ServiceImpl<WalletDepositDao, WalletDeposit> implements IService<WalletDeposit> {

    @Autowired
    private WalletDepositDao walletDepositDao;

    /**
     * 更新充值状态
     * @param walletDeposit
     * @param confirmBlcokNum
     * @return
     */
    public int updateDepositStatus(WalletDeposit walletDeposit,Integer confirmBlcokNum){
        return walletDepositDao.updateDepositStatus( walletDeposit, confirmBlcokNum);
    }
}
